package admin_router

import (
	"blog_go/api/admin_api"
)

func (r adminRouterGroup) AdminSettingsRouter() {
	adminSettingsApi := admin_api.AdminApiGroupApp.AdminSettingsApi
	r.GET("/site/info", adminSettingsApi.SettingsSiteInfoApi)
	r.PUT("/site/update", adminSettingsApi.SettingsSiteInfoUpdateApi)
	r.GET("/email/info", adminSettingsApi.SettingsEmailInfoApi)
	r.PUT("/email/update", adminSettingsApi.SettingsEmailUpdateApi)
	// 优化写法 一劳永逸
	r.GET("/info/:conf_name", adminSettingsApi.SettingsInfoApi)
	r.PUT("/update/:conf_name", adminSettingsApi.SettingsInfoUpdateApi)
}
